<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>排班第一个页面</title>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/default/easyui.css"/>" />
<link rel="stylesheet" type="text/css"
	href="<c:url value="/js/jquery-easyui-1.5.4.2/themes/icon.css"/>" />
</head>

<body>
	<div id="shq_paiban_div" class="easyui-panel"
		data-options="fit:true,border:false">
	<div style="padding: 1px; height: auto; background: #e0ecff">
		<a class="easyui-linkbutton"
			data-options="iconCls:'icon-undo',text:'取消',plain:true"></a> <a
			class="easyui-linkbutton"
			data-options="iconCls:'icon-add',plain:true">上一步</a> <a
			class="easyui-linkbutton"
			data-options="iconCls:'icon-remove',plain:true"id="to_ftwes">下一步</a> 
			<a class="easyui-linkbutton"
			data-options="iconCls:'icon-reload',plain:true">回到第一步</a>
	</div>

	<div class="easyui-panel" data-options="fit:true" id="core_one">
		<div class="easyui-layout" data-options="fit:true">
			
			<!--  -->
			<div data-options="region:'center'" style="padding: 10px 20px">
				<div style="font-size: 14px;">参数设置</div>
				<div
					style="border-top: 2px solid #19aa8d; width: 600px; margin: 10px 0px; display: inline-block;"></div>
				<table id="ff" cellspacing="10">
					<tbody>
						<tr>
							<td><input class="easyui-textbox" id="core_pbid"
								data-options="label:'  *排班编号', width:250,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input class="easyui-textbox" id="pbanname"
								data-options="label:'*名称', width:250,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input class="easyui-datebox"
								data-options="label:'*计划开始时日', width:300,labelWidth:130" /></td>
						</tr>
						<tr>
							<td><input class="easyui-datebox"
								data-options="label:'*计划结束时日', width:300,labelWidth:130" /></td>
						</tr>
					</tbody>
				</table>
				
			
		<!--清单查找-->
	<div id="insertcorepb" class="easyui-dialog"
		data-options="
		width:450,
		height:405,
		title:'清单查找-考勤员工',
		bodyCls:'awby',
		modal:true,
		closed:true,
		buttons:[{
				text:'添加',
				iconCls:'icon-ok',
				handler:function(){
					$('#f1').form({
							onSubmit:function(){
								//验证表单
								var row=$('#exam_paper_insert_kt_dg').datagrid('getSelected');
								var paperinsertid=row.quId;
								var paperinsertname=row.quName;
								$('#exam_paper_insert_id').textbox('setValue',paperinsertid);
								$('#exam_paper_insert_name').textbox('setValue',paperinsertname);
										return $(this).form('validate');
							},
							success:function(v){
								$.messager.alert('提示','恭喜，添加成功！');
								$('#insertcorepb').dialog('close');
								location.reload();
							}
						}).submit();
				}
			},{
				text:'继续添加',
				handler:function(){
					$('#f1').form('reset');
				}
			},{
				text:'关闭',
				iconCls:'icon-cancel',
				handler:function(){
					$('#insertcorepb').dialog('close');
				}
			}]">
		<div>
			<form action="">
				<table id="list_coreone">
					<tr>
						<td><input class="easyui-datebox"
							data-options="label:'参考日期', width:200,labelWidth:60" /></td>
					</tr>
					<tr>
						<td><input class="easyui-textbox"
							data-options="label:'员工', width:200,labelWidth:60" /></td>
					</tr>
					<tr>
						<td><input class="easyui-textbox"
							data-options="label:'名称', width:200,labelWidth:60" /></td>
					</tr>
					<tr>
						<td></td>
						<td><a class="easyui-linkbutton">模糊查询</a></td>
						<td><a class="easyui-linkbutton">精确查询</a></td>
					</tr>
				</table>
			</form>
		</div>
		<table class="easyui-datagrid" id="qpb_core"
			data-options="   
				method:'get',
				pagination:true,     
				url:'to_findall_findallspaiban',
				pageSize:10,     
				pageList: [10,20,30,40,50], 
				rownumbers:true,
				Striped:true, 
				singleSelect:true,
				striped:true
				">
			<thead>
				<tr>
					<th data-options="field:'ZHOUQIID'">编号</th>
					<th data-options="field:'WORKNF'">排版名称</th>
				</tr>
			</thead>
			<tbody>
		
			</tbody>
		</table>
	</div>
	</div>
	<!-- 下面步骤-->
	 <div data-options="region:'south'" style="height:150px;">
	 	<!-- 右侧向导 -->
			<%-- <div data-options="region:'east'"
				style="width: 280px; padding: 10px 80px">
				<table style="text-align: center;">
					<tr>
						<td style="font-family: '微软雅黑'; font-size: 14px;">开始</td>
						<td><img alt="" width="37px"
							src="<c:url value="/images/mljt.png"></c:url>"></td>
						<td style="font-family: '微软雅黑'; font-size: 14px;">参数设置</td>
						<td><img alt="" width="37px"
							src="<c:url value="/images/xxx.png"></c:url>"></td>
						<td style="font-family: '微软雅黑'; font-size: 14px;">数据预览
						</td>
						<td><img alt="" width="37px"
							src="<c:url value="/images/xxx.png"></c:url>"></td>
						<td style="font-family: '微软雅黑'; font-size: 14px;">结果查看</td>
						<td><img alt="" width="37px"
							src="<c:url value="/images/xxx.png"></c:url>"></td>
						<td style="font-family: '微软雅黑'; font-size: 14px;">完成</td>
					</tr>
				</table>
			</div> --%>
	 </div>   
	</div>	
	</div>
</div>
	<script>
		$(function() {
			/* 清单查找 */
			$('#core_pbid').textbox({
				icons : [ {
					iconCls : 'icon-add',
					handler : function(e) {
						$("#insertcorepb").dialog("open");
						//双击获取值
						$('#qpb_core').datagrid({onDblClickRow:function(index,row){
								var paperinsertid=row.ZHOUQIID;
								var paperinsertname=row.WORKNF;
								$('#core_pbid').textbox("setValue",paperinsertid);
								$('#pbanname').textbox("setValue",paperinsertname);
								//关闭窗口
								$('#insertcorepb').dialog('close');
							}
						});
					}
				} ]
			});
			//下一步
			$('#to_ftwes').linkbutton({
				onClick : function() {
					var zhouqiid=$('#core_pbid').textbox("getValue");
					alert(zhouqiid)
					$("#shq_paiban_div").panel({
						href : "to_core_twe?zhouqiId="+zhouqiid
					});
				}
			});
			function submitForm() {
				$('#ff').form(
						'submit',
						{
							onSubmit : function() {
								return $(this).form('enableValidation').form(
										'validate');
							}
						});
			}
			function clearForm() {
				$('#ff').form('clear');
			}

		});
	</script>
</body>
</html>